Optimal. Leaf size=58 \[ -\frac {\sin ^2(a+b x)}{2 b}-\frac {\csc ^4(a+b x)}{4 b}+\frac {3 \csc ^2(a+b x)}{2 b}+\frac {3 \log (\sin (a+b x))}{b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.04, antiderivative size = 58, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.176, Rules used = {2590, 266, 43} \[ -\frac {\sin ^2(a+b x)}{2 b}-\frac {\csc ^4(a+b x)}{4 b}+\frac {3 \csc ^2(a+b x)}{2 b}+\frac {3 \log (\sin (a+b x))}{b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 43
Rule 266
Rule 2590
Rubi steps
\begin {align*} \int \cos ^2(a+b x) \cot ^5(a+b x) \, dx &=\frac {\operatorname {Subst}\left (\int \frac {\left (1-x^2\right )^3}{x^5} \, dx,x,-\sin (a+b x)\right )}{b}\\ &=\frac {\operatorname {Subst}\left (\int \frac {(1-x)^3}{x^3} \, dx,x,\sin ^2(a+b x)\right )}{2 b}\\ &=\frac {\operatorname {Subst}\left (\int \left (-1+\frac {1}{x^3}-\frac {3}{x^2}+\frac {3}{x}\right ) \, dx,x,\sin ^2(a+b x)\right )}{2 b}\\ &=\frac {3 \csc ^2(a+b x)}{2 b}-\frac {\csc ^4(a+b x)}{4 b}+\frac {3 \log (\sin (a+b x))}{b}-\frac {\sin ^2(a+b x)}{2 b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.15, size = 47, normalized size = 0.81 \[ \frac {-2 \sin ^2(a+b x)-\csc ^4(a+b x)+6 \csc ^2(a+b x)+12 \log (\sin (a+b x))}{4 b} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.48, size = 90, normalized size = 1.55 \[ \frac {2 \, \cos \left (b x + a\right )^{6} - 5 \, \cos \left (b x + a\right )^{4} - 2 \, \cos \left (b x + a\right )^{2} + 12 \, {\left (\cos \left (b x + a\right )^{4} - 2 \, \cos \left (b x + a\right )^{2} + 1\right )} \log \left (\frac {1}{2} \, \sin \left (b x + a\right )\right ) + 4}{4 \, {\left (b \cos \left (b x + a\right )^{4} - 2 \, b \cos \left (b x + a\right )^{2} + b\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.29, size = 232, normalized size = 4.00 \[ -\frac {\frac {20 \, {\left (\cos \left (b x + a\right ) - 1\right )}}{\cos \left (b x + a\right ) + 1} + \frac {{\left (\cos \left (b x + a\right ) - 1\right )}^{2}}{{\left (\cos \left (b x + a\right ) + 1\right )}^{2}} + \frac {\frac {18 \, {\left (\cos \left (b x + a\right ) - 1\right )}}{\cos \left (b x + a\right ) + 1} - \frac {111 \, {\left (\cos \left (b x + a\right ) - 1\right )}^{2}}{{\left (\cos \left (b x + a\right ) + 1\right )}^{2}} + \frac {36 \, {\left (\cos \left (b x + a\right ) - 1\right )}^{3}}{{\left (\cos \left (b x + a\right ) + 1\right )}^{3}} - \frac {72 \, {\left (\cos \left (b x + a\right ) - 1\right )}^{4}}{{\left (\cos \left (b x + a\right ) + 1\right )}^{4}} + 1}{{\left (\frac {\cos \left (b x + a\right ) - 1}{\cos \left (b x + a\right ) + 1} - \frac {{\left (\cos \left (b x + a\right ) - 1\right )}^{2}}{{\left (\cos \left (b x + a\right ) + 1\right )}^{2}}\right )}^{2}} - 96 \, \log \left (\frac {{\left | -\cos \left (b x + a\right ) + 1 \right |}}{{\left | \cos \left (b x + a\right ) + 1 \right |}}\right ) + 192 \, \log \left ({\left | -\frac {\cos \left (b x + a\right ) - 1}{\cos \left (b x + a\right ) + 1} + 1 \right |}\right )}{64 \, b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.02, size = 95, normalized size = 1.64 \[ -\frac {\cos ^{8}\left (b x +a \right )}{4 b \sin \left (b x +a \right )^{4}}+\frac {\cos ^{8}\left (b x +a \right )}{2 b \sin \left (b x +a \right )^{2}}+\frac {\cos ^{6}\left (b x +a \right )}{2 b}+\frac {3 \left (\cos ^{4}\left (b x +a \right )\right )}{4 b}+\frac {3 \left (\cos ^{2}\left (b x +a \right )\right )}{2 b}+\frac {3 \ln \left (\sin \left (b x +a \right )\right )}{b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.48, size = 49, normalized size = 0.84 \[ -\frac {2 \, \sin \left (b x + a\right )^{2} - \frac {6 \, \sin \left (b x + a\right )^{2} - 1}{\sin \left (b x + a\right )^{4}} - 6 \, \log \left (\sin \left (b x + a\right )^{2}\right )}{4 \, b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.64, size = 74, normalized size = 1.28 \[ \frac {3\,\ln \left (\mathrm {tan}\left (a+b\,x\right )\right )}{b}-\frac {3\,\ln \left ({\mathrm {tan}\left (a+b\,x\right )}^2+1\right )}{2\,b}+\frac {\frac {3\,{\mathrm {tan}\left (a+b\,x\right )}^4}{2}+\frac {3\,{\mathrm {tan}\left (a+b\,x\right )}^2}{4}-\frac {1}{4}}{b\,\left ({\mathrm {tan}\left (a+b\,x\right )}^6+{\mathrm {tan}\left (a+b\,x\right )}^4\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 11.57, size = 733, normalized size = 12.64 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________